package cn.gok.oop;

/**
 * @ClassName 接口
 * @Description TODO
 * @Author HP
 * @Date 15:17 2022/7/5
 * @Version 1.0
 **/
interface Fly{
    void fly();
}
interface Callable{
    void call();
}
class Bird implements Fly,Callable{

    @Override
    public void fly() {
        System.out.println("鸟在飞");
    }

    @Override
    public void call() {
        System.out.println("鸟在叫");
    }
}

interface MultipleMedia{
    void playAudio();
    void playVideo();
}
interface Storage{
    void saveFile();
}
interface SmartPhone extends MultipleMedia,Storage{

}
class AndroidPhone implements SmartPhone{
    private  String name;
    private int price;

    @Override
    public void playAudio() {

    }

    @Override
    public void playVideo() {

    }

    @Override
    public void saveFile() {

    }
}
public class 接口 {
    public static void main(String[] args) {
//        Bird bird = new Bird();
//        bird.call();
//        bird.fly();

    }
}
